package br.edu.senai.controller;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;

@ManagedBean
public class Listar {
    
    @ManagedProperty(value = "#{login}")
    private Login login;
    
    public Login getLogin() {
        return login;
    }

    public void setLogin(Login login) {
        this.login = login;
    }

    public String getNomeUserLogado() {
        return login.getUser();
    }
    
    public String getSenhaUserLogado() {
        return login.getPasswd();
    }
    
}
